<?php


namespace app\action;

use app\model\RoomModel;
use app\service\AmqpService;

class IndexAction
{

    public function index()
    {
        //接受参数
        $data = $_POST;

        //发送数据到队列中
        AmqpService::send($data);

    }


    public function task()
    {
        AmqpService::receive();
    }


}